<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="/Public/Admin/css/layui.css"/>
    <style>
        .pages{
            padding-top: 10px;
            margin-left: 30px;
        }
        .pages span {
            background: #8FC41F;
            color: #fff;
            border: 1px solid #8FC41F;
            padding: 3px 10px;
            margin-left: 8px;

        }
        .pages a {
            border: 1px solid #666666;
            padding: 3px 10px;
            margin-left: 8px;
            text-decoration: none;
            color: #333;
            outline: none;

        }
        .pages li {
            display: inline-block;
            list-style: none;
            text-decoration: none;
            color: #58A0D3;
            margin-left: 20px;
        }
        table{border-collapse: collapse;
            width: 100%;
            font-size: 14px;
            text-align: center;
            margin-top: 10px;
            margin-left: 10px;
        }
        table th{background-color: #E8E8E8;}
        table th,
        table td{border: solid 1px #ccc; padding: 8px;}
    </style>
</head>
<body>
<table>
    <thead>
    <tr>
        <th>编号</th>
        <th>用户</th>
        <th>性别</th>
        <th>邮箱</th>
        <th>注册时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vol): $mod = ($i % 2 );++$i;?><tr>
            <td><?php echo ($i); ?></td>
            <td><?php echo ($vol["username"]); ?></td>
            <td><?php echo ($vol["sex"]); ?></td>
            <td><?php echo ($vol["email"]); ?></td>
            <td><?php echo (date("Y-m-d H:i:s",$vol["regtime"])); ?></td>
            <td>
                <a   href="/index.php/Admin/User/update/id/<?php echo ($vol["id"]); ?> "class="layui-btn layui-btn-xs" >修改</a>
                <a  href="/index.php/Admin/User/del/id/<?php echo ($vol["id"]); ?> " class="layui-btn layui-btn-danger layui-btn-xs" onclick="if(confirm('确定删除么？')===false) return  false;">删除</a>
            </td>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    </tbody>
</table>
<div class="pages"><?php echo ($show); ?></div>
</body>
</html>